﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Admin_AdvertisementList, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/DataTableList.ascx" TagName="DataTableList" TagPrefix="UC" %>
<%@ Register Src="~/UserControls/Pager.ascx" TagName="Pager" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Manage Advertisements</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server">
        <div>
            <a href="/Pages/Admin/AdvertisementChange.aspx">Add Advertisement</a>
        </div>

        <div class="GroupBox">
            <div class="GroupHeaderOverlay">Advertisement List</div>
            <UC:DataTableList ID="ucAdvertisementList" runat="server" 
                LinkFields="ID" CheckForDeletePermission="false"
                ExcludeVisibleFields="ID, RowNumber, TotalRecord" />
        </div>

        <div style="margin-top:10px;">
            <UC:Pager ID="ucPagerBottom" runat="server" NumberOfPageLinksToDisplay="7" OnPageIndexChanged="ucPagerBottom_PageIndexChanged" />
        </div>
    </asp:Panel>
</asp:Content>

